package com.gjh.study.mybatis.domain;

import java.io.Serializable;
import java.util.List;

/**
 * @author guangjh
 * @version 1.0
 * @date 2020/7/12 7:23
 */
public class Article implements Serializable {

    private static final long serialVersionUID = 1L;
    private Integer id;
    private String name;
    private Double price;
    private String remark;

    private List<Order> orders;

    public Article() {
        super();
    }

    public Article(String name, Double price, String remark) {
        this.name = name;
        this.price = price;
        this.remark = remark;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public List<Order> getOrders() {
        return orders;
    }

    public void setOrders(List<Order> orders) {
        this.orders = orders;
    }

    @Override
    public String toString() {
        return "Article [id=" + id + ", name=" + name + ", price=" + price + ", remark=" + remark + "]";
    }
}
